# coding:utf-8
from selenium.webdriver.common.by import By


class Login(object):
    # 退出登录按钮
    USERNAME = (By.XPATH, '//input[@placeholder="账号"]')

    # 添加店铺
    PASSWORD = (By.XPATH, '//input[@placeholder="密码"]')

    LOGIN_BTN = (By.XPATH, '//button[@type="submit"]')


class Menu:
    # 监测管理
    MONITOR = (By.XPATH, '//*[contains(text(),"监测管理")]/..')
    # 设备管理
    DEVICES = (By.XPATH, '//*[contains(text(),"设备管理")]/..')


class Monitor:
    # 设备管理新增按钮
    DEVICES_ADD_BTN = (By.XPATH, '//*[contains(text(),"新 增")]')
    # qr_code设备条码输入
    QRCODE_INP = (By.XPATH, '//*[contains(text(),"设备条码")]/../following-sibling::div//input')
    # 点击监测点
    REGION = (By.XPATH,'//*[contains(text(),"监测点")]/../following-sibling::div//input')
    # 选择父级监测点
    REGION_PARENT = (By.XPATH,'//div[@class="ant-select-tree-treenode ant-select-tree-treenode-switcher-close"]')

    REGION_OPEN = (By.XPATH,'')




